$(() => {
    $("#logout").click(function(){
        $.ajax({
            url: ctx+"/shopping/member/logout",
            method:"post",
            dataType: "json",
            success(resp){
                if(resp.success){
                    location.href = ctx + "/shopping/index";
                }
            }
        })
    });
});